package com.ruoyi.zone.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.zone.mapper.ReflexZoneMapper;
import com.ruoyi.zone.domain.ReflexZone;
import com.ruoyi.zone.service.IReflexZoneService;

/**
 * 手耳足反射区Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-10
 */
@Service
public class ReflexZoneServiceImpl implements IReflexZoneService 
{
    @Autowired
    private ReflexZoneMapper reflexZoneMapper;

    /**
     * 查询手耳足反射区
     * 
     * @param id 手耳足反射区主键
     * @return 手耳足反射区
     */
    @Override
    public ReflexZone selectReflexZoneById(Long id)
    {
        return reflexZoneMapper.selectReflexZoneById(id);
    }

    /**
     * 查询手耳足反射区列表
     * 
     * @param reflexZone 手耳足反射区
     * @return 手耳足反射区
     */
    @Override
    public List<ReflexZone> selectReflexZoneList(ReflexZone reflexZone)
    {
        return reflexZoneMapper.selectReflexZoneList(reflexZone);
    }

    /**
     * 新增手耳足反射区
     * 
     * @param reflexZone 手耳足反射区
     * @return 结果
     */
    @Override
    public int insertReflexZone(ReflexZone reflexZone)
    {
        reflexZone.setCreateTime(DateUtils.getNowDate());
        return reflexZoneMapper.insertReflexZone(reflexZone);
    }

    /**
     * 修改手耳足反射区
     * 
     * @param reflexZone 手耳足反射区
     * @return 结果
     */
    @Override
    public int updateReflexZone(ReflexZone reflexZone)
    {
        return reflexZoneMapper.updateReflexZone(reflexZone);
    }

    /**
     * 批量删除手耳足反射区
     * 
     * @param ids 需要删除的手耳足反射区主键
     * @return 结果
     */
    @Override
    public int deleteReflexZoneByIds(Long[] ids)
    {
        return reflexZoneMapper.deleteReflexZoneByIds(ids);
    }

    /**
     * 删除手耳足反射区信息
     * 
     * @param id 手耳足反射区主键
     * @return 结果
     */
    @Override
    public int deleteReflexZoneById(Long id)
    {
        return reflexZoneMapper.deleteReflexZoneById(id);
    }
}
